package com.example.batbat.viewmodel;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.example.batbat.model.AppUserDetail;
import com.example.common.user.GlobalUser;

public class MainViewModel extends ViewModel {
    private MutableLiveData<Boolean> isLogin=new MutableLiveData<>();

    public MainViewModel(){
        isLogin.setValue(GlobalUser.IS_LOGIN);
    }

    public MutableLiveData<Boolean> getIsLogin() {
        return isLogin;
    }

    public void refreshStat(){
        isLogin.setValue(GlobalUser.IS_LOGIN);
    }
}
